#include <stdio.h>

int main()
{

	int col_num = 2, reminder, i = 0;

	char col_name[48] = "";

	while (col_num) {
		reminder = (col_num - 1) % 26;
		col_name [i++] = reminder + 'A';
		col_num = (col_num - reminder) / 26;
	}
	col_name [i] = '\0';

	printf ("Column name: %s\n", col_name);

	return 0;
}
